include(/mnt/Datos/Facultad/Latex/circuit_macros/pgf.m4)
include(/mnt/Datos/Facultad/Latex/circuit_macros/libcct.m4)
   
.PS 
cct_init
  
elen = 1
Origin: Here
	ground
	source(up_ elen, AC); llabel(, v_{s}); dot
	resistor(right_ ); rlabel(, R_{s},)
	capacitor(right_ ); llabel(, C_{s},); dot
	{
		resistor(down_ elen); llabel(, R_{G},); ground
		R: Here
	}
	line right_ elen*0.3
	MOS:mosfet(up_ ,, LEDSQuB,S) with .G at Here; rlabel(,T1,);
	line from MOS.S down_ 0.1
	dot(at MOS.S)
	resistor(down_ elen*0.6); rlabel(, R_{S},); b_current(I_D,,O,E,0.5); ground
	line from MOS.D to (MOS.D.x, MOS.D.y + 0.1)
	resistor(right_ elen*0.7); llabel(, 50 \Omega, )
	MOS2:mosfet(left_ ,,LEDSuB) with .S at (Here.x+0.5, Here.y); rlabel(,T2,);
	resistor(right_ elen*0.7 from MOS2.S); llabel(, 100 \Omega,)
	dot
	{
		resistor(down_ elen*0.7); llabel(, R_D,)
		line right_ 0.4
		capacitor(down_ elen*0.7); llabel(, C_{cc},)
		line left_ 0.4
		{
		source(up_ elen*0.7, V); llabel(, V_{CC}, )
		}
		line down_ 0.1; ground
	}
	capacitor(right_ elen*0.7); llabel(, C_L, )
	resistor(down_ elen*0.7); llabel(, R_{L},); ground
	line down_ 0.25 from MOS2.G 
	{
		line left_ to MOS.S
	}
	capacitor(down_ elen*0.6); llabel(, C_{G},); ground
	line up_ 0.2 from MOS2.B
	line left_ 0.3 
	line down_ 0.55
	line left_ to MOS.B
.PE

